<script src="${ctxPath}/plugin/jquery/jquery-1.10.2.min.js" type="text/javascript"></script> 
<script type='text/javascript' src='${ctxPath}/plugin/bootstrap-3.3.5-dist/js/bootstrap.min.js'></script>  
<script type='text/javascript' src='${ctxPath}/plugin/craftpip-jquery-confirm-00f7956/js/jquery-confirm.js'></script>
<script type='text/javascript' src='${ctxPath}/plugin/artDialog-5.0.4/artDialog.min.js'></script>
<script type="text/javascript" src="${ctxPath}/plugin/bootstrapQ-master/bootstrapQ.js"></script>
<script type='text/javascript' src='${ctxPath}/plugin/bootstrap-3.3.5-dist/bootstrap3-validation.js'></script>
<!--bootstrap table-->
<script src="${ctxPath}/plugin/bootstrap-table-master/dist/bootstrap-table.js"></script>
<script src="${ctxPath}/plugin/bootstrap-table-master/dist/locale/bootstrap-table-zh-CN.js"></script>
<!--delete-->
<script src="${ctxPath}/static/console/js/table-crud.js"></script>
<script src="${ctxPath}/static/console/js/field-component.js"></script>
		<!-- Flot -->


<!-- Slimscroll -->
<script src='${ctxPath}/portal_2/js/jquery.slimscroll.min.js'></script>

<!-- Morris -->
<script src='${ctxPath}/portal_2/js/rapheal.min.js'></script>
<script src='${ctxPath}/portal_2/js/morris.min.js'></script>

<!-- Datepicker -->
<script src='${ctxPath}/portal_2/js/uncompressed/datepicker.js'></script>

<!-- Sparkline -->
<script src='${ctxPath}/portal_2/js/sparkline.min.js'></script>

<!-- Skycons -->
<script src='${ctxPath}/portal_2/js/uncompressed/skycons.js'></script>

<!-- Popup Overlay -->
<script src='${ctxPath}/portal_2/js/jquery.popupoverlay.min.js'></script>

<!-- Easy Pie Chart -->
<script src='${ctxPath}/portal_2/js/jquery.easypiechart.min.js'></script>

<!-- Sortable -->
<script src='${ctxPath}/portal_2/js/uncompressed/jquery.sortable.js'></script>

<!-- Owl Carousel -->
<script src='${ctxPath}/portal_2/js/owl.carousel.min.js'></script>

<!-- Modernizr -->
<script src='${ctxPath}/portal_2/js/modernizr.min.js'></script>

<!-- Simplify -->
<script src="${ctxPath}/portal_2/js/simplify/simplify.js"></script>
<script src="${ctxPath}/plugin/jquery-cookie/jquery.cookie.js"></script>
<script>
	$(function($){
		$("a[name='second_nav']").click(function(){
			$.cookie('second_three_nav_cookie', null,{ path: '/' });
			$.cookie('second_nav_cookie', $(this).attr("id"),{ path: '/' });
		});
		$("a[name='second_three_nav']").click(function(){
			$.cookie('second_three_nav_cookie', $(this).attr("id"),{ path: '/' });
			$.cookie('second_nav_cookie', null,{ path: '/' });
		});
		$("a[name='three_nav']").click(function(){
			$.cookie('three_nav_cookie', $(this).attr("id"),{ path: '/' });
		});
		var second_three_nav_cookie = $.cookie('second_three_nav_cookie');
		var second_nav_cookie = $.cookie('second_nav_cookie');
		var three_nav_cookie = $.cookie('three_nav_cookie');
		if(second_three_nav_cookie!=undefined&&second_three_nav_cookie!=null&&second_three_nav_cookie!='null'){
			var li = $("#"+second_three_nav_cookie).parent();
			$(li).attr("class","openable bg-palette3 open");
			$("#"+second_three_nav_cookie).next("ul").show();
			if(three_nav_cookie!=undefined){
				$("#"+three_nav_cookie).css("color","#fff");
			}
		}else{
			if(second_nav_cookie!=undefined&&second_nav_cookie!=null&&second_nav_cookie!='null'){
				var li = $("#"+second_nav_cookie).parent();
				$(li).attr("class","bg-palette2 active");
			}
		}



	});

</script>